python avoid floating point errors

welcome to shbcf.ru